package com.car.dal.dao.tracking;

import com.car.bean.GridObj;
import com.car.bean.OrderObj;
import com.car.bean.PageObj;
import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.TgTracking;

public class TgTrackingDaoImpl extends IbatisCommonDao<TgTracking, Long> implements TgTrackingDao {

	public GridObj GetList(TgTracking tracking, PageObj pageObj) {
		OrderObj order = new OrderObj();
		order.setDir("desc");
		order.setSort("id");
		return super.findByPage(tracking, pageObj, order);
	}

	@Override
	public Integer getTrackCountByType(TgTracking tracking) {
		return this.queryForInteger("getTrackCountByType", tracking);
	}
	
}
